var location = {
  href: "",
};
var navigator = {
  sendBeacon() {},
};
var window = {
  document: {
    cookie: "",
  },
};
var document = {
  cookie: "",
};
var Jose = (function (t) {
  var e = {};
  function n(r) {
    var i;
    return (
      e[r] ||
      ((i = e[r] =
        {
          i: r,
          l: !1,
          exports: {},
        }),
      t[r].call(i.exports, i, i.exports, n),
      (i.l = !0),
      i)
    ).exports;
  }
  return (
    (n.m = t),
    (n.c = e),
    (n.d = function (t, e, r) {
      n.o(t, e) ||
        Object.defineProperty(t, e, {
          enumerable: !0,
          get: r,
        });
    }),
    (n.r = function (t) {
      "undefined" != typeof Symbol &&
        Symbol.toStringTag &&
        Object.defineProperty(t, Symbol.toStringTag, {
          value: "Module",
        }),
        Object.defineProperty(t, "__esModule", {
          value: !0,
        });
    }),
    (n.t = function (t, e) {
      if ((1 & e && (t = n(t)), 8 & e)) return t;
      if (4 & e && "object" == typeof t && t && t.__esModule) return t;
      var r = Object.create(null);
      if (
        (n.r(r),
        Object.defineProperty(r, "default", {
          enumerable: !0,
          value: t,
        }),
        2 & e && "string" != typeof t)
      )
        for (var i in t)
          n.d(
            r,
            i,
            function (e) {
              return t[e];
            }.bind(null, i)
          );
      return r;
    }),
    (n.n = function (t) {
      var e =
        t && t.__esModule
          ? function () {
              return t.default;
            }
          : function () {
              return t;
            };
      return n.d(e, "a", e), e;
    }),
    (n.o = function (t, e) {
      return Object.prototype.hasOwnProperty.call(t, e);
    }),
    (n.p = ""),
    n((n.s = 4))
  );
})([
  function (t, e) {
    function n(t) {
      return (n =
        "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
          ? function (t) {
              return typeof t;
            }
          : function (t) {
              return t &&
                "function" == typeof Symbol &&
                t.constructor === Symbol &&
                t !== Symbol.prototype
                ? "symbol"
                : typeof t;
            })(t);
    }
    (function () {
      var t = Object.create,
        r = [];
      (e.prototypeOf = function (t) {
        return null == t ? null : t.__proto__;
      }),
        (e.create = t),
        (e.hasProp = function (t, e) {
          return (
            Object.prototype.hasOwnProperty.call(t, e) ||
            ("object" === n(t[e]) && void 0 !== t[e])
          );
        }),
        (e.isArray = function () {
          if ("function" != typeof Array.isArray) return obj instanceof Array;
        }),
        (e.defProp = function (t, e, n) {
          return Object.defineProperty(t, e, n);
        }),
        (e.checkIdentifier = function (t) {
          return r.includes(t);
        }),
        (e.isNaNP = function (t) {
          return t != t;
        });
    }).call(this);
  },
  function (t, e) {
    function n(t) {
      return (n =
        "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
          ? function (t) {
              return typeof t;
            }
          : function (t) {
              return t &&
                "function" == typeof Symbol &&
                t.constructor === Symbol &&
                t !== Symbol.prototype
                ? "symbol"
                : typeof t;
            })(t);
    }
    var r = (function () {
      return this;
    })();
    try {
      r = r || new Function("return this")();
    } catch (i) {
      "object" === ("undefined" == typeof window ? "undefined" : n(window)) &&
        (r = window);
    }
    t.exports = r;
  },
  function (t, e, n) {
    (function () {
      var t = n(7).VmError,
        r = {}.hasOwnProperty,
        i =
          ((function (t, e) {
            for (var n in e) r.call(e, n) && (t[n] = e[n]);
            function i() {
              this.constructor = t;
            }
            (i.prototype = e.prototype),
              (t.prototype = new i()),
              (t.__super__ = e.prototype);
          })(o, t),
          (o.display = "StopIteration"),
          o);
      function o(t, e) {
        (this.value = t),
          (this.message = null != e ? e : "iterator has stopped");
      }
      function a(t) {
        (this.elements = t), (this.index = 0);
      }
      (a.prototype.next = function () {
        if (this.index >= this.elements.length) throw new i("array over");
        return this.elements[this.index++];
      }),
        (t = a),
        (e.StopIteration = i),
        (e.ArrayIterator = t);
    }).call(this);
  },
  function (t, e, n) {
    function r(t) {
      return (r =
        "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
          ? function (t) {
              return typeof t;
            }
          : function (t) {
              return t &&
                "function" == typeof Symbol &&
                t.constructor === Symbol &&
                t !== Symbol.prototype
                ? "symbol"
                : typeof t;
            })(t);
    }
    (function () {
      var t = {}.hasOwnProperty,
        i = n(0).isArray,
        o =
          ((a.prototype.run = function () {
            for (
              var t = this.callStack[this.depth], e = t.error;
              0 <= this.depth && t && !this.paused;

            )
              if (
                ((t = e ? this.unwind(e) : t).run(),
                (e = t.error) instanceof Error && this.injectStackTrace(e),
                t.done())
              ) {
                if (t.guards.length) {
                  var n = t.guards.pop();
                  if (n.finalizer) {
                    (t.ip = n.finalizer), (t.exitIp = n.end), (t.paused = !1);
                    continue;
                  }
                }
                t.construct &&
                  "object" !== (n = r(this.rv)) &&
                  "function" !== n &&
                  (this.rv = t.scope.get(0)),
                  (t = this.popFrame()) &&
                    !e &&
                    (t.evalStack.push(this.rv), (this.rv = void 0));
              } else e = (t = this.callStack[this.depth]).error;
            if (
              (this.timedOut() &&
                ((e = new Error(this)), this.injectStackTrace(e)),
              e)
            )
              throw e;
          }),
          (a.prototype.unwind = function (t) {
            for (var e = this.callStack[this.depth]; e; ) {
              e.error = t;
              var n = e.ip - 1,
                r = e.guards.length;
              if (r && (r = e.guards[r - 1]).start <= n && n <= r.end) {
                if (null !== r.handler)
                  if (n <= r.handler)
                    e.evalStack.push(t), (e.error = null), (e.ip = r.handler);
                  else {
                    if (!(r.finalizer && e.ip <= r.finalizer)) {
                      e = this.popFrame();
                      continue;
                    }
                    e.ip = r.finalizer;
                  }
                else e.ip = r.finalizer;
                return (e.paused = !1), e;
              }
              e = this.popFrame();
            }
            throw t;
          }),
          (a.prototype.injectStackTrace = function (t) {
            var e,
              n,
              r,
              o,
              a,
              s,
              c,
              l = [],
              u = 0;
            for (
              this.depth > this.maxTraceDepth &&
                (u = this.depth - this.maxTraceDepth),
                n = r = a = this.depth,
                s = u;
              a <= s ? r <= s : s <= r;
              n = a <= s ? ++r : --r
            )
              "<anonymous>" === (o = (e = this.callStack[n]).script.name) &&
                e.fname &&
                (o = e.fname),
                l.push({
                  at: {
                    name: o,
                    filename: e.script.filename,
                  },
                  line: e.line,
                  column: e.column,
                });
            if (t.trace) {
              for (c = t.trace; i(c[c.length - 1]); ) c = c[c.length - 1];
              c.push(l);
            } else t.trace = l;
            return (t.stack = t.toString());
          }),
          (a.prototype.pushFrame = function (t, e, n, r, i, o, a) {
            if (
              (null == o && (o = "<anonymous>"),
              null == a && (a = !1),
              this.checkCallStack())
            )
              return (
                (n = new h(n, t.localNames, t.localLength)).set(0, e),
                (e = new s(this, t, n, this.realm, o, a)),
                i && e.evalStack.push(i),
                r && e.evalStack.push(r),
                (this.callStack[++this.depth] = e)
              );
          }),
          (a.prototype.checkCallStack = function () {
            return (
              this.depth !== this.maxDepth ||
              ((this.callStack[this.depth].error = new Error(
                "maximum call stack size exceeded"
              )),
              this.pause(),
              !1)
            );
          }),
          (a.prototype.popFrame = function () {
            var t = this.callStack[--this.depth];
            return t && (t.paused = !1), t;
          }),
          (a.prototype.pause = function () {
            return (this.paused = this.callStack[this.depth].paused = !0);
          }),
          (a.prototype.resume = function (t) {
            if (
              ((this.timeout = null != t ? t : -1),
              (this.paused = !1),
              (this.callStack[this.depth].paused = !1),
              this.run(),
              !this.paused)
            )
              return this.rexp;
          }),
          (a.prototype.timedOut = function () {
            return 0 === this.timeout;
          }),
          (a.prototype.send = function (t) {
            return this.callStack[this.depth].evalStack.push(t);
          }),
          (a.prototype.done = function () {
            return -1 === this.depth;
          }),
          a);
      function a(t, e) {
        (this.realm = t),
          (this.timeout = null != e ? e : -1),
          (this.maxDepth = 1e3),
          (this.maxTraceDepth = 50),
          (this.callStack = []),
          (this.evalStack = null),
          (this.depth = -1),
          (this.yielded = this.rv = void 0),
          (this.paused = !1),
          (this.r1 = this.r2 = this.r3 = null),
          (this.rexp = null);
      }
      (c.prototype.run = function () {
        for (
          var t = this.script.instructions;
          this.ip !== this.exitIp && !this.paused;

        )
          t[this.ip++].exec(this, this.evalStack, this.scope, this.realm);
        var e = this.evalStack.len();
        if (!this.paused && !this.error && 0 !== e)
          throw new Error(
            "Evaluation stack has " + e + " items after execution"
          );
      }),
        (c.prototype.done = function () {
          return this.ip === this.exitIp;
        }),
        (c.prototype.setLine = function (t) {
          this.line = t;
        }),
        (c.prototype.setColumn = function (t) {
          this.column = t;
        });
      var s = c;
      function c(t, e, n, r, i, o) {
        (this.fiber = t),
          (this.script = e),
          (this.scope = n),
          (this.realm = r),
          (this.fname = i),
          (this.construct = null != o && o),
          (this.evalStack = new l(this.script.stackSize, this.fiber)),
          (this.ip = 0),
          (this.exitIp = this.script.instructions.length),
          (this.paused = !1),
          (this.finalizer = null),
          (this.guards = []),
          (this.rv = void 0),
          (this.line = this.column = -1);
      }
      (u.prototype.push = function (t) {
        if (this.idx === this.array.length)
          throw new Error("maximum evaluation stack size exceeded");
        return (this.array[this.idx++] = t);
      }),
        (u.prototype.pop = function () {
          return this.array[--this.idx];
        }),
        (u.prototype.top = function () {
          return this.array[this.idx - 1];
        }),
        (u.prototype.len = function () {
          return this.idx;
        }),
        (u.prototype.clear = function () {
          return (this.idx = 0);
        });
      var l = u;
      function u(t, e) {
        (this.fiber = e), (this.array = new Array(t)), (this.idx = 0);
      }
      (p.prototype.get = function (t) {
        return this.data[t];
      }),
        (p.prototype.set = function (t, e) {
          return (this.data[t] = e);
        }),
        (p.prototype.name = function (e) {
          var n,
            r = this.names;
          for (n in r) if (t.call(r, n) && r[n] === e) return parseInt(n);
          return -1;
        });
      var h = p;
      function p(t, e, n) {
        (this.parent = t), (this.names = e), (this.data = new Array(n));
      }
      (d.prototype.get = function (t) {
        return this.object[t];
      }),
        (d.prototype.set = function (t, e) {
          return (this.object[t] = e);
        }),
        (d.prototype.has = function (t) {
          return t in this.object;
        });
      var f = d;
      function d(t, e) {
        (this.parent = t), (this.object = e);
      }
      (e.Fiber = o), (e.Scope = h), (e.WithScope = f);
    }).call(this);
  },
  function (t, e, n) {
    (n = new (n(5))()).eval(
      '["<script>",0,[[22]8false,15,null17]anonymous[,4,3163152,14[30721[,"$encode"1[8getCatVersi76,2049753379577389,88791625994-6-439,56919,018-52916763404582,-3064843563"c2true[j,8"ObjectjmpOnw_ms"04D"w2KsGuard6otDeviceInfo,b2sa_h2subs_h2b_xcAi,M"rdom70"tfloor"[0bx628$E"pro[1t"urlkpn90fbugnsn54mes7t0l"[l"vOu_"iIxky"tupRtEoHUDR4Baun1$HEhxf_nadniinpurvcavsdk"ou"SIG4签名信息:epr错误ng"t8Ar25"6toS0[5"3"DGuwxNYwyaAEhW5J.0."2'
    ),
      (t.exports = n);
  },
  function (t, e, n) {
    (function (e) {
      function r(t) {
        return (r =
          "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
            ? function (t) {
                return typeof t;
              }
            : function (t) {
                return t &&
                  "function" == typeof Symbol &&
                  t.constructor === Symbol &&
                  t !== Symbol.prototype
                  ? "symbol"
                  : typeof t;
              })(t);
      }
      (function (i) {
        var o = n(6),
          a = n(8),
          s = n(3).Fiber,
          c = n(11),
          l = n(13),
          u = n(14);
        function h(t) {
          (this.realm = new o(t)),
            (this.realm.global.startupRandom = new Date().getTime()),
            (this.realm.global.count = 100),
            new l().register(),
            new u().register(),
            ("object" !==
              ("undefined" == typeof window ? "undefined" : r(window)) &&
              "object" !== (void 0 === e ? "undefined" : r(e))) ||
              ((t = n(15)), (this.realm.global.KsGuard = new t.default()));
        }
        (h.prototype.eval = function (t, e) {
          (t = new c().unzip(t)),
            this.run(h.fromJSON(JSON.parse(t)), e),
            (this.realm.global.startupEnd = new Date().getTime());
        }),
          (h.prototype.run = function (t, e) {
            if (((t = this.createFiber(t, e)).run(), !t.paused)) return t.rexp;
          }),
          (h.prototype.call = function (t, n) {
            var r = window || e;
            if ("$encode" === t)
              try {
                throw new Error();
              } catch (o) {
                var i = o.stack.length;
                r &&
                  (r.SECS = {
                    s: 100 < i ? o.stack.substr(i - 100, 100) : o.stack,
                    c: this.realm.global.count,
                  });
              }
            return this.realm.global[t].apply(this, n);
          }),
          (h.prototype.createFiber = function (t, e) {
            return (
              (e = new s(this.realm, e)).pushFrame(t, this.realm.global), e
            );
          }),
          (h.fromJSON = a.fromJSON),
          (t.exports = h);
      }).call(this);
    }).call(this, n(1));
  },
  function (t, e, n) {
    (function (e) {
      function r(t) {
        return (r =
          "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
            ? function (t) {
                return typeof t;
              }
            : function (t) {
                return t &&
                  "function" == typeof Symbol &&
                  t.constructor === Symbol &&
                  t !== Symbol.prototype
                  ? "symbol"
                  : typeof t;
              })(t);
      }
      (function () {
        var i,
          o = {}.hasOwnProperty,
          a = (i = n(0)).prototypeOf,
          s = i.hasProp,
          c = (i = n(2)).ArrayIterator,
          l = i.StopIteration;
        function u(t) {
          var n,
            i,
            u = {
              isBrowser: "undefined" == typeof window,
              window: "undefined" == typeof window ? e : window,
              localStorage:
                "object" ===
                ("undefined" == typeof localStorage
                  ? "undefined"
                  : r(localStorage))
                  ? localStorage
                  : {},
              sessionStorage:
                "object" ===
                ("undefined" == typeof sessionStorage
                  ? "undefined"
                  : r(sessionStorage))
                  ? sessionStorage
                  : {},
              document:
                "object" ===
                ("undefined" == typeof document ? "undefined" : r(document))
                  ? document
                  : {},
              undefined: void 0,
              Object: Object,
              Function: Function,
              Number: Number,
              Boolean: Boolean,
              String: String,
              Array: Array,
              Int8Array: Int8Array,
              Int32Array: Int32Array,
              Uint8Array: Uint8Array,
              Date: Date,
              RegExp: RegExp,
              Error: Error,
              StopIteration: l,
              Math: Math,
              JSON: JSON,
              encodeURIComponent: encodeURIComponent,
              unescape: unescape,
              escape: escape,
              decodeURIComponent: decodeURIComponent,
              isNaN: isNaN,
              Infinity: 1 / 0,
              NaN: NaN,
              parseInt: parseInt,
              parseFloat: parseFloat,
              isFinite: isFinite,
              encodeURI: encodeURI,
              decodeURI: decodeURI,
              TypeError: TypeError,
              URIError: URIError,
              SyntaxError: SyntaxError,
              ReferenceError: ReferenceError,
              RangeError: RangeError,
              EvalError: EvalError,
              eval: eval,
              console: console,
            };
          for (n in ((this.has = function (t, e) {
            return null != t && (!!s(t, e) || this.has(a(t), e));
          }),
          (this.get = function (t, e) {
            return null == t ? void 0 : t[e];
          }),
          (this.set = function (t, e, n) {
            var i = r(t);
            return ("object" === i || "function" === i) && (t[e] = n), n;
          }),
          (this.del = function (t, e) {
            var n = r(t);
            return ("object" !== n && "function" !== n) || delete t[e];
          }),
          (this.instanceOf = function (t, e) {
            var n;
            return (
              null != e &&
              ("object" === (n = r(e)) || "function" === n) &&
              e instanceof t
            );
          }),
          (this.enumerateKeys = function (t) {
            var e,
              n = [];
            for (e in t) "__mdid__" !== e && n.push(e);
            return new c(n);
          }),
          t))
            o.call(t, n) && ((i = t[n]), (u[n] = i));
          this.global = u;
        }
        (u.prototype.inv = function (t) {
          return -t;
        }),
          (u.prototype.lnot = function (t) {
            return !t;
          }),
          (u.prototype.ladd = function (t) {
            return +t;
          }),
          (u.prototype.not = function (t) {
            return ~t;
          }),
          (u.prototype.inc = function (t) {
            return ++t;
          }),
          (u.prototype.dec = function (t) {
            return t - 1;
          }),
          (u.prototype.add = function (t, e) {
            return e + t;
          }),
          (u.prototype.sub = function (t, e) {
            return e - t;
          }),
          (u.prototype.mul = function (t, e) {
            return e * t;
          }),
          (u.prototype.div = function (t, e) {
            return e / t;
          }),
          (u.prototype.mod = function (t, e) {
            return e % t;
          }),
          (u.prototype.shl = function (t, e) {
            return e << t;
          }),
          (u.prototype.sar = function (t, e) {
            return e >> t;
          }),
          (u.prototype.shr = function (t, e) {
            return e >>> t;
          }),
          (u.prototype.or = function (t, e) {
            return e | t;
          }),
          (u.prototype.and = function (t, e) {
            return e & t;
          }),
          (u.prototype.xor = function (t, e) {
            return e ^ t;
          }),
          (u.prototype.ceq = function (t, e) {
            return e == t;
          }),
          (u.prototype.cneq = function (t, e) {
            return e != t;
          }),
          (u.prototype.cid = function (t, e) {
            return e === t;
          }),
          (u.prototype.cnid = function (t, e) {
            return e !== t;
          }),
          (u.prototype.lt = function (t, e) {
            return e < t;
          }),
          (u.prototype.lte = function (t, e) {
            return e <= t;
          }),
          (u.prototype.gt = function (t, e) {
            return t < e;
          }),
          (u.prototype.gte = function (t, e) {
            return t <= e;
          }),
          (t.exports = u);
      }).call(this);
    }).call(this, n(1));
  },
  function (t, e, n) {
    var r = n(0).isArray,
      i = function t(e, n) {
        null == n && (n = ""), (n += "    ");
        for (var i = "", o = 0; o < e.length; o++) {
          var a,
            s,
            c,
            l = e[o];
          r(l)
            ? (i = (i += "\n\n" + n + "Rethrown:") + t(l, n))
            : ((a = l.line),
              (s = l.column),
              (c = l.at.name),
              (l = l.at.filename),
              (i += c
                ? "\n" + n + "at " + c + " (" + l + ":" + a + ":" + s + ")"
                : "\n" + n + "at " + l + ":" + a + ":" + s));
        }
        return i;
      };
    function o(t) {
      (this.trace = null), (this.message = t);
    }
    (o.prototype.toString = function () {
      var t = this.constructor.display + ": " + this.message;
      return this.trace && (t += i(this.trace)), t;
    }),
      (o.prototype.stackTrace = function () {
        return this.toString();
      }),
      (e.VmError = o);
  },
  function (t, e, n) {
    (function () {
      var e = n(9),
        r = function (t) {
          for (var n = [], r = 0; r < t.length; r++) {
            for (
              var i = t[r], o = e[i[0]], a = [], s = 1, c = 1, l = i.length;
              1 <= l ? c < l : l < c;
              s = 1 <= l ? ++c : --c
            )
              a.push(i[s]);
            (o = new o(a.length ? a : null)), n.push(o);
          }
          return n;
        },
        i = function (t) {
          var e = t.lastIndexOf("/"),
            n = t.slice(0, e);
          e = t.slice(e + 1);
          return new RegExp(n, e);
        },
        o =
          ((a.fromJSON = function t(e) {
            for (var n = r(e[2]), a = [], s = e[3], c = 0; c < s.length; c++) {
              var l = s[c];
              a.push(t(l));
            }
            for (
              var u = e[4], h = u.length, p = [], f = e[5], d = 0;
              d < f.length;
              d++
            ) {
              var m = f[d];
              p.push({
                start: -1 !== m[0] ? m[0] : null,
                handler: -1 !== m[1] ? m[1] : null,
                finalizer: -1 !== m[2] ? m[2] : null,
                end: -1 !== m[3] ? m[3] : null,
              });
            }
            for (
              var g = e[6], v = e[7], y = [], b = e[8], w = 0;
              w < b.length;
              w++
            ) {
              var S = b[w];
              y.push(i(S));
            }
            return new o(null, null, n, a, u, h, p, g, v, y, null);
          }),
          a);
      function a(t, e, n, r, i, o, a, s, c, l, u) {
        (this.filename = t),
          (this.name = e),
          (this.instructions = n),
          (this.scripts = r),
          (this.localNames = i),
          (this.localLength = o),
          (this.guards = a),
          (this.stackSize = s),
          (this.strings = c),
          (this.regexps = l),
          (this.source = u);
      }
      t.exports = o;
    }).call(this);
  },
  function (module, exports, __webpack_require__) {
    function _typeof(t) {
      return (_typeof =
        "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
          ? function (t) {
              return typeof t;
            }
          : function (t) {
              return t &&
                "function" == typeof Symbol &&
                t.constructor === Symbol &&
                t !== Symbol.prototype
                ? "symbol"
                : typeof t;
            })(t);
    }
    (function () {
      var ref = __webpack_require__(2),
        StopIteration = ref.StopIteration,
        ref1 = __webpack_require__(0);
      ref1.defProp;
      var hasProp = ref1.hasProp,
        ref3 = __webpack_require__(3),
        Fiber = ref3.Fiber,
        Scope = ref3.Scope,
        WithScope = ref3.WithScope,
        OpcodeClassFactory = (function () {
          var t = 0;
          return function (e, n, r) {
            var i;
            return (
              ((i = function (t) {
                t && (this.args = t);
              }).prototype.id = t++),
              (i.prototype.exec = n),
              (i.prototype.calculateFactor =
                r ||
                function () {
                  return 2;
                }),
              i
            );
          };
        })();
      __webpack_require__(10);
      var Op = function (t, e, n) {
          return OpcodeClassFactory(t, e, n);
        },
        opcodes = [
          new Op("", function (t, e, n) {
            return ret(t);
          }),
          new Op("", function (t, e, n) {
            return e.pop();
          }),
          new Op("", function (t, e, n) {
            return e.push(e.top());
          }),
          new Op("", function (t, e, n) {
            var r = e.pop(),
              i = e.pop();
            return e.push(r), e.push(i);
          }),
          new Op("", function (t, e, n) {
            return (t.fiber.rv = e.pop()), ret(t);
          }),
          new Op("", function (t, e) {
            return (t.paused = !0);
          }),
          new Op("", function (t, e) {
            return (t.fiber.yielded = e.pop()), t.fiber.pause();
          }),
          new Op("", function (t, e, n) {
            return throwErr(t, e.pop());
          }),
          new Op("", function (t) {
            return t.guards.push(t.script.guards[this.args[0]]);
          }),
          new Op("", function (t) {
            var e = t.guards[t.guards.length - 1];
            if (t.script.guards[this.args[0]] === e) return t.guards.pop();
          }),
          new Op("", function (t, e, n) {
            return (t.fiber.r1 = e.pop());
          }),
          new Op("", function (t, e, n) {
            return (t.fiber.r2 = e.pop());
          }),
          new Op("", function (t, e, n) {
            return (t.fiber.r3 = e.pop());
          }),
          new Op("", function (t, e, n) {
            return e.push(t.fiber.r1);
          }),
          new Op("", function (t, e, n) {
            return e.push(t.fiber.r2);
          }),
          new Op("", function (t, e, n) {
            return e.push(t.fiber.r3);
          }),
          new Op("", function (t, e, n) {
            return e.push(+t.fiber.r3);
          }),
          new Op("", function (t, e, n) {
            return (e.fiber.rexp = e.pop());
          }),
          new Op("", function (t, e, n) {
            return callm(t, 0, "iterator", e.pop());
          }),
          new Op("", function (t, e, n, r) {
            return e.push(r.enumerateKeys(e.pop()));
          }),
          new Op("", function (t, e, n) {
            if (
              (callm(t, 0, "next", e.pop()), t.error instanceof StopIteration)
            )
              return (t.error = null), (t.paused = !1), (t.ip = this.args[0]);
          }),
          new Op("", function (t, e, n) {
            if ((n.set(1, e.pop()), (e = e.pop()), this.args[0]))
              return n.set(2, e);
          }),
          new Op("", function (t, e, n, r) {
            return e.push(r.global);
          }),
          new Op("", function (t, e, n, r) {
            var i = this.args[0],
              o = this.args[1],
              a = n.get(1);
            if (i < a.length) return n.set(o, Array.prototype.slice.call(a, i));
          }),
          new Op("", function (t, e, n) {
            return call(t, this.args[0], e.pop(), null, null, !0);
          }),
          new Op("", function (t, e, n) {
            return call(t, this.args[0], e.pop(), null, this.args[1]);
          }),
          new Op("", function (t, e, n) {
            return callm(t, this.args[0], e.pop(), e.pop(), this.args[1]);
          }),
          new Op("", function (t, e, n, r) {
            var i = e.pop(),
              o = e.pop();
            return null == i
              ? throwErr(
                  t,
                  new TypeError("Cannot read property '" + o + "' of " + i)
                )
              : "function" == typeof i &&
                "length" === o &&
                void 0 !== i.originFnLength
              ? e.push(r.get(i, "originFnLength"))
              : e.push(r.get(i, o));
          }),
          new Op("", function (t, e, n, r) {
            var i = e.pop(),
              o = e.pop(),
              a = e.pop();
            return null == i
              ? throwErr(
                  t,
                  new TypeError("Cannot set property '" + o + "' of " + i)
                )
              : Object.isExtensible(i) || "__proto__" !== o
              ? e.push(r.set(i, o, a))
              : throwErr(
                  t,
                  new Error(
                    "#<Object> is not extensible at set __proto__[as __proto__]"
                  )
                );
          }),
          new Op("", function (t, e, n, r) {
            var i = e.pop(),
              o = e.pop();
            return null == i
              ? throwErr(t, new Error("Cannot convert null to object"))
              : e.push(r.del(i, o));
          }),
          new Op("", function (t, e, n) {
            try {
              for (var r = this.args[0], i = this.args[1], o = n; r--; )
                o = o.parent;
              return e.push(o.get(i));
            } catch (a) {
              return throwErr(t, a);
            }
          }),
          new Op("", function (t, e, n) {
            for (var r = this.args[0], i = this.args[1], o = n; r--; )
              o = o.parent;
            return e.push(o.set(i, e.pop()));
          }),
          new Op("", function (t, e, n, r) {
            try {
              for (var i, o = this.args[0]; n instanceof WithScope; ) {
                if (n.has(o)) return e.push(n.get(o));
                n = n.parent;
              }
              for (; n instanceof Scope; ) {
                if (0 <= (i = n.name(o))) return e.push(n.get(i));
                n = n.parent;
              }
              return hasProp(r.global, o) || this.args[1]
                ? e.push(r.global[o])
                : throwErr(t, new Error(o + " is not defined"));
            } catch (a) {
              return throwErr(t, a);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              for (
                var i, o = this.args[0], a = e.pop();
                n instanceof WithScope;

              ) {
                if (n.has(o)) return e.push(n.set(o, a));
                n = n.parent;
              }
              for (; n instanceof Scope; ) {
                if (0 <= (i = n.name(o))) return e.push(n.set(i, a));
                n = n.parent;
              }
              return e.push((r.global[o] = a));
            } catch (s) {
              return throwErr(t, s);
            }
          }),
          new Op("", function (t, e, n, r) {
            return hasProp(r.global, this.args[0]) || this.args[1]
              ? e.push(r.global[this.args[0]])
              : "this" === this.args[0]
              ? e.push(r.global)
              : throwErr(t, new Error(this.args[0] + " is not defined"));
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push((r.global[this.args[0]] = e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t) {
            return (t.scope = new Scope(
              t.scope,
              t.script.localNames,
              t.script.localLength
            ));
          }),
          new Op("", function (t) {
            return (t.scope = t.scope.parent);
          }),
          new Op("", function (t, e) {
            return (t.scope = new WithScope(t.scope, e.pop()));
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.inv(e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.lnot(e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.ladd(e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.not(e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.inc(e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.dec(e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.add(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.sub(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.mul(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.div(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.mod(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.shl(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.sar(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.shr(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.or(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.and(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.xor(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.ceq(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.cneq(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.cid(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.cnid(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.lt(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.lte(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.gt(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.gte(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.has(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(r.instanceOf(e.pop(), e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e, n, r) {
            try {
              return e.push(_typeof(e.pop()));
            } catch (i) {
              return throwErr(t, i);
            }
          }),
          new Op("", function (t, e) {
            return e.pop(), e.push(void 0);
          }),
          new Op("", function (t, e, n) {
            return (t.ip = this.args[0]);
          }),
          new Op("", function (t, e, n) {
            if (e.pop()) return (t.ip = this.args[0]);
          }),
          new Op("", function (t, e, n) {
            if (!e.pop()) return (t.ip = this.args[0]);
          }),
          new Op("", function (t, e) {
            return e.push(void 0);
          }),
          new Op("", function (t, e, n) {
            return e.push(this.args[0]);
          }),
          new Op("", function (t, e, n) {
            return e.push(this.args[0] ? 1 / 0 : -1 / 0);
          }),
          new Op("", function (t, e, n) {
            return e.push(NaN);
          }),
          new Op("", function (t, e, n) {
            return e.push(-0);
          }),
          new Op("", function (t, e, n) {
            return e.push(t.script.strings[this.args[0]]);
          }),
          new Op("", function (t, e, n, r) {
            return e.push(t.script.regexps[this.args[0]], r);
          }),
          new Op("", function (t, e, n, r) {
            for (var i = this.args[0], o = {}; i--; ) {
              var a = e.pop(),
                s = e.pop();
              o.hasOwnProperty(a) || r.set(o, a, s);
            }
            return e.push(o);
          }),
          new Op("", function (t, e, n, r) {
            for (var i = this.args[0], o = new Array(i); i--; ) o[i] = e.pop();
            return e.push(o);
          }),
          new Op("", function (t, e, n, r) {
            var i = this.args[0];
            return e.push(
              createFunction(t.script.scripts[i], n, r, this.args[1])
            );
          }),
          new Op("", function (t) {
            return t.setLine(this.args[0]);
          }),
          new Op("", function (t) {
            return t.setColumn(this.args[0]);
          }),
          new Op("", function (t, e, n) {
            return debug();
          }),
        ],
        callm = function (t, e, n, r, i) {
          var o,
            a = t.evalStack,
            s = t.realm;
          return null == r
            ? throwErr(
                t,
                new Error(
                  "Cannot call method '" +
                    n +
                    "' of " +
                    (void 0 === r ? "undefined" : "null")
                )
              )
            : ((o = r.constructor.name || "Object"),
              (s = s.get(r, n)) instanceof Function
                ? call(t, e, s, r)
                : null == s
                ? (a.pop(),
                  throwErr(
                    t,
                    new Error("Object #<" + o + "> has no method '" + n + "'")
                  ))
                : (a.pop(),
                  throwErr(
                    t,
                    new Error(
                      "Property '" +
                        n +
                        "' of object #<" +
                        o +
                        "> is not a function"
                    )
                  )));
        },
        call = function (t, e, n, r, i, o) {
          if ("function" != typeof n)
            return throwErr(t, new Error("object is not a function"));
          for (
            var a = t.evalStack,
              s = t.fiber,
              c = t.realm,
              l = {
                length: e,
                callee: n,
              };
            e;

          )
            l[--e] = a.pop();
          (r = void 0 === r ? c.global : r),
            (l = Array.prototype.slice.call(l));
          try {
            var u = o ? createNativeInstance(n, l) : n.apply(r, l);
            if (!s.paused) return a.push(u);
          } catch (h) {
            throwErr(t, h);
          }
        },
        createFunction = function (t, e, n, r, i) {
          var o;
          return (
            ((o = function r() {
              var i,
                o,
                a,
                s = !1;
              if (
                ((o = r.__fiber__)
                  ? ((o.callStack[o.depth].paused = !0),
                    (r.__fiber__ = null),
                    (i = r.__construct__),
                    (r.__construct__ = null))
                  : ((o = new Fiber(n)), (s = !0)),
                (a = r.__callname__ || t.name),
                (r.__callname__ = null),
                o.pushFrame(t, this, e, arguments, r, a, i),
                s)
              )
                return o.run(), o.rv;
            }).originFnLength = i),
            o
          );
        },
        callArrayConstructor = function (t) {
          return 1 === t.length && (0 | t[0]) === t[0]
            ? new Array(t[0])
            : t.slice();
        },
        callRegExpConstructor = function (t) {
          return 1 === t.length ? new RegExp(t[0]) : new RegExp(t[0], t[1]);
        },
        createNativeInstance = function (t, e) {
          var n;
          return t === Array
            ? callArrayConstructor(e)
            : t === Date
            ? 0 === e.length
              ? new Date()
              : new Date(e[0])
            : t === RegExp
            ? callRegExpConstructor(e)
            : t === Number
            ? 0 === e.length
              ? new Number()
              : new Number(e[0])
            : t === Boolean
            ? 0 === e.length
              ? new Boolean()
              : new Boolean(e[0])
            : t === Uint8Array
            ? new Uint8Array(e[0])
            : t === Int8Array
            ? new Int8Array(e[0])
            : t === Int32Array
            ? new Int32Array(e[0])
            : t === String
            ? new String(e[0] || "")
            : (((n = function () {
                return t.apply(this, e);
              }).prototype = t.prototype),
              new n());
        },
        ret = function (t) {
          return t.evalStack.clear(), (t.exitIp = t.ip);
        },
        throwErr = function (t, e) {
          return (t.error = e), (t.paused = !0);
        },
        debug = function debug() {
          eval("debugger;");
        };
      module.exports = opcodes;
    }).call(this);
  },
  function (t, e) {
    t.exports = function (t, e) {
      (this.__proto__ = RegExp.prototype),
        Object.defineProperties(this, {
          global: {
            value: t.global,
          },
          ignoreCase: {
            value: t.ignoreCase,
          },
          multiline: {
            value: t.multiline,
          },
          source: {
            value: t.source,
          },
          hasIndices: {
            value: t.hasIndices,
          },
          dotAll: {
            value: t.dotAll,
          },
          flags: {
            value: t.flags,
          },
          sticky: {
            value: t.sticky,
          },
          unicode: {
            value: t.unicode,
          },
        });
    };
  },
  function (t, e, n) {
    var r, i;
    (i = n(12)),
      ((r = function () {}).prototype.zip = function (t) {
        return i.encode(t);
      }),
      (r.prototype.unzip = function (t) {
        return i.decode(t);
      }),
      (t.exports = r);
  },
  function (t, e) {
    function n(t, e) {
      (null == e || e > t.length) && (e = t.length);
      for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
      return r;
    }
    (t.exports.encode = function (t) {
      try {
        var e,
          n = {},
          r = [],
          i = t[0],
          o = 57344;
        t = (t + "").split("");
        for (var a = 1; a < t.length; a++)
          null != n[i + (e = t[a])] && i + e !== "toString"
            ? (i += e)
            : (r.push(1 < i.length ? n[i] : i.codePointAt(0)),
              (n[i + e] = o),
              o++,
              (i = e));
        return (
          r.push(1 < i.length ? n[i] : i.codePointAt(0)),
          r
            .map(function (t) {
              return String.fromCodePoint(t);
            })
            .join("")
        );
      } catch (s) {
        throw new Error(s);
      }
    }),
      (t.exports.decode = function (t) {
        try {
          for (
            var e = (function (t) {
                return (
                  (function (t) {
                    if (Array.isArray(t)) return n(t);
                  })(t) ||
                  (function (t) {
                    if (
                      ("undefined" != typeof Symbol &&
                        null != t[Symbol.iterator]) ||
                      null != t["@@iterator"]
                    )
                      return Array.from(t);
                  })(t) ||
                  (function (t, e) {
                    var r;
                    if (t)
                      return "string" == typeof t
                        ? n(t, e)
                        : "Map" ===
                            (r =
                              "Object" ===
                                (r = Object.prototype.toString
                                  .call(t)
                                  .slice(8, -1)) && t.constructor
                                ? t.constructor.name
                                : r) || "Set" === r
                        ? Array.from(t)
                        : "Arguments" === r ||
                          /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)
                        ? n(t, e)
                        : void 0;
                  })(t) ||
                  (function () {
                    throw new TypeError(
                      "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
                    );
                  })()
                );
              })(t).map(function (t) {
                return t.codePointAt(0);
              }),
              r = {},
              i = String.fromCodePoint(e[0]),
              o = i,
              a = [i],
              s = 57344,
              c = 1;
            c < e.length;
            c++
          ) {
            var l,
              u = e[c];
            (a += l = u < 57344 ? String.fromCodePoint(e[c]) : r[u] || o + i),
              (i = l[0]),
              (r[s] = o + i),
              s++,
              (o = l);
          }
          return a;
        } catch (h) {
          throw new Error(h);
        }
      });
  },
  function (t, e) {
    function n(t) {
      return (n =
        "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
          ? function (t) {
              return typeof t;
            }
          : function (t) {
              return t &&
                "function" == typeof Symbol &&
                t.constructor === Symbol &&
                t !== Symbol.prototype
                ? "symbol"
                : typeof t;
            })(t);
    }
    var r, i, o, a, s, c, l, u, h, p, f, d, m, g, v, y, b;
    function w(t, e) {
      return ((t >>> e) & 4294967295) | ((t << (32 - e)) & 4294967295);
    }
    function S(t, e, n, r, i, o, a) {
      for (
        t[e] = (t[e] + t[n]) & 4294967295,
          t[e] = (t[e] + o) & 4294967295,
          t[i] ^= t[e],
          t[i] = w(t[i], 16),
          t[r] = (t[r] + t[i]) & 4294967295,
          t[n] ^= t[r],
          t[n] = w(t[n], 12);
        ;

      ) {
        t[e] = (t[e] + t[n]) & 4294967295;
        break;
      }
      for (
        t[e] = t[e] + a,
          t[i] ^= t[e],
          t[i] = w(t[i], 8),
          t[r] = (t[r] + t[i]) & 4294967295;
        ;

      ) {
        t[n] ^= t[r];
        break;
      }
      t[n] = w(t[n], 7);
    }
    function _(t, e, n, i, o, a, s) {
      for (var c = new Array(16), l = new Array(16), u = 0; u < 16; ++u)
        l[u] = 0;
      for (u = 0; u < 8; u++) c[u] = t[u];
      for (;;) {
        for (u = 0; u < 8; u++) c[u + 8] = 4294967295 & s[u];
        break;
      }
      for (c[12] ^= i; ; ) {
        a && (c[14] ^= 4294967295);
        break;
      }
      for (;;) {
        for (u = 0; u < o; u++) l[u % 16] ^= e[n + u];
        break;
      }
      for (;;) {
        for (u = 0; u < r; u++) {
          for (
            S(c, 0, 4, 8, 12, l[V[u][0]], l[V[u][1]]),
              S(c, 1, 5, 9, 13, l[V[u][2]], l[V[u][3]]);
            ;

          ) {
            S(c, 2, 6, 10, 14, l[V[u][4]], l[V[u][5]]);
            break;
          }
          S(c, 3, 7, 11, 15, l[V[u][6]], l[V[u][7]]),
            S(c, 0, 5, 10, 15, l[V[u][8]], l[V[u][9]]),
            S(c, 1, 6, 11, 12, l[V[u][10]], l[V[u][11]]),
            S(c, 2, 7, 8, 13, l[V[u][12]], l[V[u][13]]),
            S(c, 3, 4, 9, 14, l[V[u][14]], l[V[u][15]]);
        }
        break;
      }
      for (u = 0; u < 8; u++) t[u] ^= c[u] ^ c[u + 8];
      return t;
    }
    function E(t) {
      var e = t.split("").map(function (t) {
        return t.codePointAt(0) || 0;
      });
      return new Int8Array(e);
    }
    function k(t) {
      var e,
        n,
        r = 0;
      e = 1 & a;
      for (var i, v = 1 & s, y = 0; y < 8; y++) {
        for (;;) {
          if (1 & o)
            if (((o = (o ^ ((c >> 1) & 4294967295)) | d), 1 & a)) {
              for (;;) {
                a = (a ^ ((l >> 1) & 4294967295)) | m;
                break;
              }
              e = 1;
            } else (a = (a >> 1) & 4294967295 & p), (e = 0);
          else
            for (o = (o >> 1) & 4294967295 & h; ; ) {
              if (1 & s) {
                for (;;) {
                  s = (s ^ ((u >> 1) & 4294967295)) | g;
                  break;
                }
                v = 1;
              } else {
                for (;;) {
                  s = (s >> 1) & 4294967295 & f;
                  break;
                }
                v = 0;
              }
              break;
            }
          break;
        }
        r =
          127 < (i = ((r << 1) & 4294967295) | (e ^ v))
            ? i - 256
            : i < -128
            ? i + 256
            : i;
      }
      for (;;) {
        n = t;
        break;
      }
      for (n ^= r += 3; ; ) return n;
    }
    function x(t) {
      return (
        (t = unescape(encodeURIComponent(t))),
        new Int8Array(
          t.split("").map(function (t) {
            return t.charCodeAt(0) || 0;
          })
        )
      );
    }
    function T(t, e) {
      for (var n = ""; ; ) {
        for (var r = 0; r < e; r++) n += t;
        break;
      }
      return n;
    }
    function C(t) {
      var e,
        n,
        r,
        i = x(t);
      (e = i.length % 4 == 0 ? 0 : 4 - (i.length % 4)),
        (n = new Int8Array(i.length + e));
      for (var o = 0; o < i.length; ++o) n[o] = i[o];
      for (r = new Array(n.length / 4); ; ) {
        for (o = 0; o < n.length; o += 4)
          r[o / 4] = new Int32Array(n.slice(o, o + 4).buffer)[0];
        break;
      }
      for (;;) return r;
    }
    function A(t, e) {
      var n, r;
      for (n = 0, r = new Int8Array(t.length); ; ) {
        for (; n < t.length; )
          for (var i = 0; i < e.length; i++) (r[n] = t[n] ^ (255 & e[i])), n++;
        break;
      }
      return r;
    }
    function I(t) {
      for (var e = parseInt(t, 16), n = Math.pow(2, (t.length / 2) * 8); ; ) {
        n / 2 - 1 < e && (e -= n);
        break;
      }
      for (;;) return e;
    }
    function P(t) {
      var e;
      for (e = []; ; ) {
        for (var n = 0; n < t.length; n += 2) e.push(I(t.substr(n, 2)));
        break;
      }
      return e;
    }
    function $(t, e) {
      for (var n = [], r = (e = e || 4) - 1; 0 <= r; r--)
        n[e - 1 - r] = (t >>> (8 * r)) & 255;
      return n;
    }
    function M(t, e) {
      var n = [];
      if (4 < (e = e || 4) && 4294967295 < t) {
        var r,
          i = t.toString(2);
        r = parseInt(i.substr(0, i.length - 16), 2);
        for (var o = 0; o <= e - 1; o++)
          n[o] =
            0 === o || 1 === o
              ? parseInt(i.substr(i.length - 8 * (o + 1), 8), 2)
              : (r >>> (8 * (o - 2))) & 255;
      } else for (o = 0; o <= e - 1; o++) n[o] = (t >>> (8 * o)) & 255;
      for (;;) return n;
    }
    function D(t, e, n) {
      var r, i;
      for (r = "", i = [], i = (e ? $ : M)(t, n); ; ) {
        for (var o = 0; o < i.length; o++)
          r += 0 === i[o] ? "00" : (i[o] < 16 ? "0" : "") + i[o].toString(16);
        break;
      }
      return r;
    }
    function O(t) {
      for (var e = "", n = 0; n < t.length; n++)
        e +=
          255 & t[n]
            ? ((255 & t[n]) < 16 ? "0" : "") + (255 & t[n]).toString(16)
            : "00";
      return e;
    }
    function N() {
      return "e0000000000000";
    }
    function R(t) {
      for (var e, n; ; ) {
        e = C(t);
        break;
      }
      for (
        n = (function (t) {
          for (var e; ; ) {
            e = "";
            break;
          }
          return (
            t.forEach(function (t) {
              for (var n = (t >>> 0).toString(16), r = 8 - n.length; ; ) {
                e += 0 < r ? T("0", r) + n : n;
                break;
              }
            }),
            e
          );
        })(
          (function (t) {
            var e,
              n = 0,
              r = t.length,
              i = 0;
            for ((e = z.slice())[0] ^= 16842784; 64 < r; )
              (r -= 64), _(e, t, i, (n += 64), 64, !1, z), (i += 64);
            for (n += r; ; ) return _(e, t, i, n, r, !0, z);
          })(e)
        );
        ;

      )
        return n;
    }
    function L(t) {
      for (var e = R(t); ; ) return x(e);
    }
    function B(t) {
      var e;
      for (
        o = new Int32Array(v.slice(12, 16).buffer)[0],
          a = new Int32Array(v.slice(8, 12).buffer)[0],
          s = new Int32Array(v.slice(4, 8).buffer)[0],
          c = new Int32Array(v.slice(0, 4).buffer)[0],
          l = new Int32Array(v.slice(16, 20).buffer)[0],
          u = new Int32Array(v.slice(20, 24).buffer)[0],
          h = new Int32Array(v.slice(24, 28).buffer)[0],
          p = new Int32Array(v.slice(28, 32).buffer)[0],
          f = new Int32Array(v.slice(44, 48).buffer)[0],
          d = new Int32Array(v.slice(40, 44).buffer)[0],
          m = new Int32Array(v.slice(36, 40).buffer)[0],
          g = new Int32Array(v.slice(32, 36).buffer)[0],
          (function (t) {
            var e, n, r;
            for (i = t, n = t.length; ; ) {
              r = E(i).slice(0, n);
              break;
            }
            for (e = 0; e < 4; e++) {
              for (;;) {
                o = (o <<= 8) | r[e + 4];
                break;
              }
              (a = (a <<= 8) | r[e + 4]), (s = (s <<= 8) | r[e + 4]);
            }
            for (;;) {
              0 == o && (o = 324508639);
              break;
            }
            for (;;) {
              0 == a && (a = 610839776);
              break;
            }
            for (;;) {
              0 == s && (s = 4256789809);
              break;
            }
          })("Vuz4fCHxn1CO"),
          e = new Int8Array(t.length);
        ;

      ) {
        for (var n = 0; n < t.length; n++) e[n] = k(t[n]);
        break;
      }
      return e;
    }
    function j(t) {
      var e, r, i;
      for (
        (t && "object" === n(t)) ||
        console.error("Type Error: data must be a object");
        ;

      ) {
        (t.url && t.query) || console.error("data must have url、query");
        break;
      }
      return (
        !t.query.caver && console.error("query.caver must exist!"),
        (e = (function (t) {
          var e, n, r, i;
          for (e = /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/; ; ) {
            n = new RegExp(e);
            break;
          }
          return (
            (r = t),
            n.test(t) &&
              ((i = (t = t.split("//"))[1].indexOf("/")), !0) &&
              (r = t[1].substring(i)),
            -1 != r.indexOf("?") ? r.split("?")[0] : r
          );
        })(t.url)),
        (r = (function (t) {
          for (
            var e = Object.keys(t).reduce(function (e, r) {
              var i;
              return (
                ~r.indexOf(y) ||
                  (null == t[r]
                    ? e.push((i = r + "="))
                    : ("object" !== n(t[r]) || t[r] instanceof Array
                        ? (i = r + "=" + t[r])
                        : (i = r + "=[object Object]"),
                      e.push(i))),
                e
              );
            }, []);
            ;

          )
            return e;
        })((r = Object.assign({}, t.query, t.form || {})))),
        (i = ((document && document.cookie.split(";")) || [])
          .map(function (t) {
            return [(t = t.split("="))[0].trim(), t.slice(1).join("=").trim()];
          })
          .filter(function (t) {
            return ~b.indexOf(t[0]) && !!t[1];
          })
          .map(function (t) {
            return t[0] + "=" + t[1];
          }, [])),
        (e += r
          .concat(i)
          .sort(function (t, e) {
            for (;;) {
              if (t === e) return 0;
              break;
            }
            return t < e ? -1 : 1;
          })
          .join("")),
        t.requestBody && (e += JSON.stringify(t.requestBody)),
        e
      );
    }
    function F(t, e) {
      (t = t.toString(2)),
        (e = e.toString(2)),
        (t = (T("0", (r = Math.max(t.length, e.length)) - t.length) + t).split(
          ""
        ));
      var n = (T("0", r - e.length) + e).split(""),
        r = t
          .map(function (t, e) {
            return ("0" === t && "0" === n[e]) ||
              !(("0" === t && "1" === n[e]) || ("1" === t && "0" === n[e]))
              ? "0"
              : "1";
          })
          .join("");
      return parseInt(r, 2);
    }
    for (
      var U = function () {},
        V = [
          [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
          [14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3],
          [11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4],
          [7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8],
          [9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13],
          [2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9],
          [12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11],
          [13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10],
          [6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5],
          [10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0],
        ],
        z = [
          2837534710, 2845986804, 2436420605, 706843635, 719254516, 2557931286,
          2596197199, 2432949778,
        ],
        H = 0;
      H < 8;
      ++H
    )
      z[H] &= 4294967295;
    (r = 10),
      (d = 0),
      (g = m = f = p = h = u = l = c = s = a = o = 0),
      (v = new Int8Array([
        98, 0, 0, 128, 49, 117, 185, 253, 224, 172, 104, 36, 223, 155, 87, 19,
        32, 0, 0, 64, 2, 0, 0, 16, 255, 255, 255, 127, 255, 255, 255, 63, 0, 0,
        0, 240, 0, 0, 0, 192, 0, 0, 0, 128, 255, 255, 255, 15,
      ])),
      (y = "__NS"),
      (b = []),
      (U.prototype.register = function () {
        Object.defineProperties(Object, {
          jmpOnw_b2sa: {
            writable: !0,
            configurable: !0,
            value: L,
          },
          jmpOnw_b2has: {
            writable: !0,
            configurable: !0,
            value: R,
          },
          jmpOnw_cts: {
            writable: !0,
            configurable: !0,
            value: B,
          },
          jmpOnw_xcb: {
            writable: !0,
            configurable: !0,
            value: A,
          },
          jmpOnw_h2b: {
            writable: !0,
            configurable: !0,
            value: P,
          },
          jmpOnw_b2h: {
            writable: !0,
            configurable: !0,
            value: O,
          },
          jmpOnw_i2h: {
            writable: !0,
            configurable: !0,
            value: D,
          },
          jmpOnw_bxor: {
            writable: !0,
            configurable: !0,
            value: F,
          },
          jmpOnw_i2b1: {
            writable: !0,
            configurable: !0,
            value: M,
          },
          jmpOnw_s2ua: {
            writable: !0,
            configurable: !0,
            value: x,
          },
          jmpOnw_geh: {
            writable: !0,
            configurable: !0,
            value: N,
          },
          jmpOnw_ms: {
            writable: !0,
            configurable: !0,
            value: j,
          },
        });
      }),
      (t.exports = U);
  },
  function (t, e) {
    function n(t) {
      return (n =
        "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
          ? function (t) {
              return typeof t;
            }
          : function (t) {
              return t &&
                "function" == typeof Symbol &&
                t.constructor === Symbol &&
                t !== Symbol.prototype
                ? "symbol"
                : typeof t;
            })(t);
    }
    var r,
      i = {
        prod: "log-sdk.ksapisrv.com",
        oversea: "logsdk.kwai-pro.com",
      },
      o = {
        prod: "914e7528de",
        oversea: "602a26d3bn",
      };
    function a(t) {
      try {
        var e = {
            data: [
              {
                key: "event",
                value: t.duration
                  ? {
                      duration: t.duration,
                    }
                  : {},
                dimension: {
                  event_client_timestamp: Date.now(),
                  collect_version: "1.2.9",
                  collect_name: "RadarSeedCollect",
                  name: t.name || "",
                  message:
                    "object" === n(t.value) ? JSON.stringify(t.value) : t.value,
                  category: t.projectInfo.appKey || t.projectInfo.appkey || "",
                  sample_rate: 1,
                  other_session_increase_id: 2,
                },
                h5_extra_attr: t.log ? JSON.stringify(t.log) : "",
                refer_url_package: {
                  page: (location && location.href) || "",
                },
                url_package: {
                  page: "",
                },
                project_id:
                  t.projectInfo.radarId ||
                  o[t.projectInfo.oversea ? "oversea" : "prod"],
                radar_session_id: "",
              },
            ],
          },
          r = {
            common: {
              identity_package: {
                device_id: t.projectInfo.did || "",
                global_id: "",
                user_id: t.projectInfo.uid || "",
              },
              app_package: {
                language: "zh-CN",
                version_name: "",
              },
              device_package: {
                ua: "",
              },
              service_name: "radarSDK",
              network_package: {
                type: 3,
              },
              h5_extra_attr: t.log ? JSON.stringify(t.log) : "",
            },
            logs: [
              {
                client_timestamp: Date.now(),
                stat_package: {
                  custom_stat_event: {
                    key: "radar_log",
                    value: JSON.stringify(e),
                  },
                },
              },
            ],
          },
          a =
            "https://" +
            i[t.projectInfo.oversea ? "oversea" : "prod"] +
            "/rest/wd/common/log/collect/radar";
        (null == t.projectInfo.sampling ||
          Math.random() < +t.projectInfo.sampling) &&
          navigator.sendBeacon(a, JSON.stringify(r));
      } catch (s) {
        console.log("log error", s);
      }
    }
    ((r = function () {}).prototype.register = function () {
      Object.defineProperties(Object, {
        jmpOnw_send: {
          writable: !0,
          configurable: !0,
          value: a,
        },
      });
    }),
      (t.exports = r);
  },
  function (t, e, n) {
    n.r(e),
      function (t) {
        function n(t) {
          return (n =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (t) {
                  return typeof t;
                }
              : function (t) {
                  return t &&
                    "function" == typeof Symbol &&
                    t.constructor === Symbol &&
                    t !== Symbol.prototype
                    ? "symbol"
                    : typeof t;
                })(t);
        }
        function r(t, e) {
          for (var r = 0; r < e.length; r++) {
            var i = e[r];
            (i.enumerable = i.enumerable || !1),
              (i.configurable = !0),
              "value" in i && (i.writable = !0),
              Object.defineProperty(
                t,
                ((o = (function (t, e) {
                  if ("object" != n(t) || null === t) return t;
                  var r = t[Symbol.toPrimitive];
                  if (void 0 === r) return String(t);
                  if ("object" != n((t = r.call(t, e)))) return t;
                  throw new TypeError(
                    "@@toPrimitive must return a primitive value."
                  );
                })((o = i.key), "string")),
                "symbol" == n(o) ? o : String(o)),
                i
              );
          }
          var o;
        }
        function i(t, e) {
          if (t !== e)
            throw new TypeError("Cannot instantiate an arrow function");
        }
        function o(t) {
          return (
            (function (t) {
              if (Array.isArray(t)) return a(t);
            })(t) ||
            (function (t) {
              if (
                ("undefined" != typeof Symbol && null != t[Symbol.iterator]) ||
                null != t["@@iterator"]
              )
                return Array.from(t);
            })(t) ||
            (function (t, e) {
              var n;
              if (t)
                return "string" == typeof t
                  ? a(t, e)
                  : "Map" ===
                      (n =
                        "Object" ===
                          (n = Object.prototype.toString
                            .call(t)
                            .slice(8, -1)) && t.constructor
                          ? t.constructor.name
                          : n) || "Set" === n
                  ? Array.from(t)
                  : "Arguments" === n ||
                    /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
                  ? a(t, e)
                  : void 0;
            })(t) ||
            (function () {
              throw new TypeError(
                "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
              );
            })()
          );
        }
        function a(t, e) {
          (null == e || e > t.length) && (e = t.length);
          for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
          return r;
        }
        var s = function (t) {
            var e = this;
            return Array.from(t).map(
              function (t) {
                return i(this, e), t.codePointAt(0) || 0;
              }.bind(this)
            );
          },
          c = function (t) {
            var e =
              1 < arguments.length && void 0 !== arguments[1]
                ? arguments[1]
                : 4;
            if (4 <= e && t >= Math.pow(2, 32)) return [255, 255, 255, 255];
            for (var n = [], r = 0; r <= e - 1; r++)
              n[r] = (t >>> (8 * r)) & 255;
            return n;
          },
          l = "SECS";
        function u(t, e) {
          var n = 0,
            r = new Array(16),
            i = new Array(16),
            o = t,
            a = e;
          function s(t, e) {
            return ((t << e) & 4294967295) | (t >>> (32 - e));
          }
          function c(t, e, n, r, i) {
            (t[e] = (t[e] + t[n]) & 4294967295),
              (t[i] ^= t[e]),
              (t[i] = s(t[i], 16)),
              (t[r] = (t[r] + t[i]) & 4294967295),
              (t[n] ^= t[r]),
              (t[n] = s(t[n], 12)),
              (t[e] = (t[e] + t[n]) & 4294967295),
              (t[i] ^= t[e]),
              (t[i] = s(t[i], 8)),
              (t[r] = (t[r] + t[i]) & 4294967295),
              (t[n] ^= t[r]),
              (t[n] = s(t[n], 7));
          }
          function l() {
            for (var t = new Array(r.length), e = 0; e < r.length; ++e)
              t[e] = r[e];
            for (e = 0; e < 20; e += 2)
              c(t, 0, 4, 8, 12),
                c(t, 1, 5, 9, 13),
                c(t, 2, 6, 10, 14),
                c(t, 3, 7, 11, 15),
                c(t, 0, 5, 10, 15),
                c(t, 1, 6, 11, 12),
                c(t, 2, 7, 8, 13),
                c(t, 3, 4, 9, 14);
            for (e = 0; e < 16; ++e) i[e] = (t[e] + r[e]) & 4294967295;
          }
          (u.prototype.chachaEncrypt = function (t) {
            (r[(n = 0)] = 394484062),
              (r[1] = 2378328696),
              (r[2] = 630790222),
              (r[3] = 1922531795);
            for (var e = 0; e < 8; e++) r[e + 4] = o[e];
            (r[12] = 1), (r[13] = a[0]), (r[14] = a[1]), (r[15] = a[2]), l();
            for (var s = new Uint8Array(t.length), c = 0; c < t.length; c++) {
              var u =
                t[c] ^
                ((u = void 0),
                64 === n && (++r[12], l(), (n = 0)),
                (u = (i[n >> 2] >> ((3 & n) << 3)) & 255),
                ++n,
                127 < u ? u - 256 : u < -128 ? 256 + u : u);
              s[c] = u;
            }
            return s;
          }),
            (u.prototype.chachaDecrypt = u.prototype.chachaEncrypt);
        }
        for (
          var h = [],
            p =
              "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
            f = 0;
          f < 64;
          ++f
        )
          (h[f] = p[f]), p.charCodeAt(f);
        function d(t, e, n) {
          for (var r, i = [], o = e; o < n; o += 3)
            (r =
              ((t[o] << 16) & 16711680) +
              ((t[o + 1] << 8) & 65280) +
              (255 & t[o + 2])),
              i.push(
                h[(r >> 18) & 63] +
                  h[(r >> 12) & 63] +
                  h[(r >> 6) & 63] +
                  h[63 & r]
              );
          return i.join("");
        }
        (m = y),
          (g = [
            {
              key: "getInstance",
              value: function () {
                return y.instance || (y.instance = new y()), this.instance;
              },
            },
          ]),
          (v = [
            {
              key: "init",
              value: function () {
                try {
                  var t, e, n;
                  (t = this.infoCache).push.apply(
                    t,
                    [68, 0].concat(
                      o(
                        c(
                          null == (e = document) || null == (n = e.scripts)
                            ? void 0
                            : n.length,
                          4
                        )
                      )
                    )
                  );
                } catch (r) {}
              },
            },
            {
              key: "collectDeviceInfo",
              value: function () {
                var e = this,
                  n = window || t;
                try {
                  var r,
                    a,
                    p,
                    f = this.count;
                  (this.count += 1),
                    (m = [45, 61, 0, 2].concat(
                      o(this.infoCache),
                      [112, 0].concat(o(c(f || 0, 4))),
                      [114, 1].concat(
                        o(
                          c(
                            (null == (y = n[l]) || null == (r = y.s)
                              ? void 0
                              : r.length) || 0,
                            2
                          )
                        ),
                        o(s((null == (a = n[l]) ? void 0 : a.s) || ""))
                      ),
                      [115, 0].concat(
                        o(c((null == (p = n[l]) ? void 0 : p.c) || 0, 4))
                      )
                    ));
                } catch (b) {
                  var m = [45, 61, 0, 2].concat(
                    [117, 1].concat(
                      o(c(100, 2)),
                      o(
                        s(
                          (null == b || null == (f = b.stack)
                            ? void 0
                            : f.substr(0, 100)) || ""
                        )
                      )
                    )
                  );
                }
                n[l] = {
                  s: "",
                  c: 0,
                };
                for (var g = [], v = 0; v < m.length; v++) g.push(35 ^ m[v]);
                var y = (function (t) {
                  for (
                    var e, n = t.length, r = n % 3, i = [], o = 0, a = n - r;
                    o < a;
                    o += 16383
                  )
                    i.push(d(t, o, a < o + 16383 ? a : o + 16383));
                  return (
                    1 == r
                      ? ((e = t[n - 1]),
                        i.push(h[e >> 2] + h[(e << 4) & 63] + "=="))
                      : 2 == r &&
                        ((e = (t[n - 2] << 8) + t[n - 1]),
                        i.push(
                          h[e >> 10] + h[(e >> 4) & 63] + h[(e << 2) & 63] + "="
                        )),
                    i.join("")
                  );
                })(
                  new u(
                    [
                      4183807412, 394484062, 1106561997, 2378328696, 630790222,
                      2546784104, 2891127470, 1922531795,
                    ],
                    [2215853858, 1643070585, 1849059804]
                  ).chachaEncrypt(g)
                );
                return function (t) {
                  var n = this,
                    r =
                      (i(this, e),
                      {
                        "+": "-",
                        "/": "_",
                        "=": ".",
                      });
                  return t.replace(
                    /[+/=]/g,
                    function (t) {
                      return i(this, n), r[t];
                    }.bind(this)
                  );
                }.bind(this)(y);
              },
            },
          ]) && r(m.prototype, v),
          g && r(m, g),
          Object.defineProperty(m, "prototype", {
            writable: !1,
          });
        var m,
          g,
          v = y;
        function y() {
          if (this instanceof y)
            return (
              (this.count = 100),
              (this.infoCache = []),
              y.instance || (y.instance = this).init(),
              y.instance
            );
          throw new TypeError("Cannot call a class as a function");
        }
        (v.instance = null), (e.default = v);
      }.call(this, n(1));
  },
]);

// var params = {
//   url: "/api/config/app_ad",
//   query: {
//     caver: "2",
//   },
//   form: null,
//   requestBody: null,
//   projectInfo: {
//     appKey: "8M3oUipD76",
//     radarId: "91e99da176",
//     debug: false,
//   },
// };
// console.log(getSign4(params));

function getSign4(url, query = {}, data = null) {
  return new Promise((resolve) => {
    const params = {
      url: url,
      query: Object.assign(
        {
          caver: "2",
        },
        query
      ),
      form: null,
      requestBody: data,
      projectInfo: {
        appKey: "8M3oUipD76",
        radarId: "91e99da176",
        debug: false,
      },
    };
    Jose.call("$encode", [
      params,
      {
        suc(e, a) {
          resolve(e);
        },
        err(e) {
          resolve("");
        },
      },
    ]);
  });
}
// function getSign4(params) {
//   return new Promise((resolve) => {
//     Jose.call("$encode", [
//       params,
//       {
//         suc(e, a) {
//           resolve(e);
//         },
//         err(e) {
//           resolve("");
//         },
//       },
//     ]);
//   });
// }

module.exports = getSign4;
